package com.entity;

import java.text.ParseException;

import org.apache.struts.action.ActionForm;

import com.util.DateUtils;

/**
 * Rytx entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Rytx extends ActionForm implements java.io.Serializable{

	// Fields

	private Integer id;
	private Ryzl ryzl;
	private Long txrq;
	private Integer tqxs;
	private Integer thxs;
	private String txyy;
	private String bz;
	
	String txrqString;
	
	// Constructors

	public String getTxrqString() {
		return DateUtils.DateToString(DateUtils.longToDate(txrq));
	}

	public void setTxrqString(String txrqString) {
		
		this.txrqString = txrqString;
		try {
			this.txrq=DateUtils.stringToLong(txrqString);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	/** default constructor */
	public Rytx() {
	}

	/** full constructor */
	public Rytx(Ryzl ryzl, Long txrq, Integer tqxs, Integer thxs, String txyy,
			String bz) {
		this.ryzl = ryzl;
		this.txrq = txrq;
		this.tqxs = tqxs;
		this.thxs = thxs;
		this.txyy = txyy;
		this.bz = bz;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Ryzl getRyzl() {
		return this.ryzl;
	}

	public void setRyzl(Ryzl ryzl) {
		this.ryzl = ryzl;
	}

	public Long getTxrq() {
		return this.txrq;
	}

	public void setTxrq(Long txrq) {
		this.txrq = txrq;
	}

	public Integer getTqxs() {
		return this.tqxs;
	}

	public void setTqxs(Integer tqxs) {
		this.tqxs = tqxs;
	}

	public Integer getThxs() {
		return this.thxs;
	}

	public void setThxs(Integer thxs) {
		this.thxs = thxs;
	}

	public String getTxyy() {
		return this.txyy;
	}

	public void setTxyy(String txyy) {
		this.txyy = txyy;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

}